package com.ruoyi.qianhuankuan.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.qianhuankuan.domain.Qianhuankuan;
import org.apache.ibatis.annotations.Param;

/**
 * 欠还款Mapper接口
 *
 * @author ruoyi
 * @date 2023-05-25
 */
public interface QianhuankuanMapper extends BaseMapper<Qianhuankuan>
{
    /**
     * 查询欠还款
     *
     * @param id 欠还款主键
     * @return 欠还款
     */
    public Qianhuankuan selectQianhuankuanById(Long id);

    /**
     * 查询欠还款列表
     *
     * @param qianhuankuan 欠还款
     * @return 欠还款集合
     */
    public List<Qianhuankuan> selectQianhuankuanList(Qianhuankuan qianhuankuan);

    /**
     * 新增欠还款
     *
     * @param qianhuankuan 欠还款
     * @return 结果
     */
    public int insertQianhuankuan(Qianhuankuan qianhuankuan);

    /**
     * 修改欠还款
     *
     * @param qianhuankuan 欠还款
     * @return 结果
     */
    public int updateQianhuankuan(Qianhuankuan qianhuankuan);

    /**
     * 删除欠还款
     *
     * @param id 欠还款主键
     * @return 结果
     */
    public int deleteQianhuankuanById(Long id);

    /**
     * 批量删除欠还款
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteQianhuankuanByIds(Long[] ids);

    /**
     * 根据时间客户欠款
     *
     * @return 结果
     */
    public List<Qianhuankuan> selectQianhuankuanListAll(@Param("today") String today);
}
